package jpa.entitys.synchro.staging;

import java.io.Serializable;

import javax.persistence.*;

import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the A_GEN_DESC database table.
 * 
 */
@Entity
@Table(name="A_GEN_DESC")
@NamedQueries({
    @NamedQuery(name = "AGenDesc.findAll", query = " SELECT c FROM AGenDesc c "),
    @NamedQuery(name = "AGenDesc.findById", query = " SELECT c FROM AGenDesc c WHERE  c.aGenDescId = :Id "),
    @NamedQuery(name = "AGenDesc.findByType", query = " SELECT c FROM AGenDesc c WHERE  c.aGenTypeId = :aGenTypeId "),
    @NamedQuery(name = "AGenDesc.findByModule", query = " SELECT c FROM AGenDesc c WHERE  c.aGenTypeId = :aGenTypeId And c.aGenCodeId = :aGenCodeId And c.value1 = :value1 And c.value2 = :value2 "),
    @NamedQuery(name = "AGenDesc.findByGenCode", query = " SELECT c FROM AGenDesc c WHERE  c.aGenTypeId = :aGenTypeId And c.aGenCodeId = :aGenCodeId ")
    })
public class AGenDesc extends jpa.entitys.synchro.common.CommonEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="A_GEN_DESC_ID")
	private long aGenDescId;
	
	@Override public String toString() { return org.apache.commons.lang.builder.ToStringBuilder.reflectionToString(this);}

	@Column(name="A_GEN_CODE_ID")
	private BigDecimal aGenCodeId;

	@Column(name="A_GEN_TYPE_ID")
	private BigDecimal aGenTypeId;

	@Column(name="CREATED_BY")
	private String createdBy;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="CREATED_ON")
	private Date createdOn;

	private String description;

	private String isactive;

	@Column(name="MSG_CODE")
	private String msgCode;

	@Column(name="MSG_DESC")
	private String msgDesc;

	@Column(name="REF_A_GEN_DESC_ID")
	private BigDecimal refAGenDescId;

	private String status;

	@Column(name="UPDATED_BY")
	private String updatedBy;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="UPDATED_ON")
	private Date updatedOn;
	
	@Column(name="VALUE1")
	private String value1;

	@Column(name="VALUE2")
	private String value2;

	@Column(name="VALUE3")
	private String value3;

	@Column(name="VALUE4")
	private String value4;

	@Column(name="VALUE5")
	private String value5;

	public AGenDesc() {
	}

	public long getAGenDescId() {
		return this.aGenDescId;
	}

	public void setAGenDescId(long aGenDescId) {
		this.aGenDescId = aGenDescId;
	}

	public BigDecimal getAGenCodeId() {
		return this.aGenCodeId;
	}

	public void setAGenCodeId(BigDecimal aGenCodeId) {
		this.aGenCodeId = aGenCodeId;
	}

	public BigDecimal getAGenTypeId() {
		return this.aGenTypeId;
	}

	public void setAGenTypeId(BigDecimal aGenTypeId) {
		this.aGenTypeId = aGenTypeId;
	}

	public String getCreatedBy() {
		return this.createdBy;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public Date getCreatedOn() {
		return this.createdOn;
	}

	public void setCreatedOn(Date createdOn) {
		this.createdOn = createdOn;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getIsactive() {
		return this.isactive;
	}

	public void setIsactive(String isactive) {
		this.isactive = isactive;
	}

	public String getMsgCode() {
		return this.msgCode;
	}

	public void setMsgCode(String msgCode) {
		this.msgCode = msgCode;
	}

	public String getMsgDesc() {
		return this.msgDesc;
	}

	public void setMsgDesc(String msgDesc) {
		this.msgDesc = msgDesc;
	}

	public BigDecimal getRefAGenDescId() {
		return this.refAGenDescId;
	}

	public void setRefAGenDescId(BigDecimal refAGenDescId) {
		this.refAGenDescId = refAGenDescId;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getUpdatedBy() {
		return this.updatedBy;
	}

	public void setUpdatedBy(String updatedBy) {
		this.updatedBy = updatedBy;
	}

	public Date getUpdatedOn() {
		return this.updatedOn;
	}

	public void setUpdatedOn(Date updatedOn) {
		this.updatedOn = updatedOn;
	}

	public String getValue1() {
		return this.value1;
	}

	public void setValue1(String value1) {
		this.value1 = value1;
	}

	public String getValue2() {
		return this.value2;
	}

	public void setValue2(String value2) {
		this.value2 = value2;
	}

	public String getValue3() {
		return this.value3;
	}

	public void setValue3(String value3) {
		this.value3 = value3;
	}

	public String getValue4() {
		return this.value4;
	}

	public void setValue4(String value4) {
		this.value4 = value4;
	}

	public String getValue5() {
		return this.value5;
	}

	public void setValue5(String value5) {
		this.value5 = value5;
	}

}